package com.example.perplonews.a_c_network.interceptor

import android.content.Context
import com.example.perplonews.a_b_utils.LjlUtils
import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response

class Splash_Inter:Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {

        var request = chain.request()
        var builder = Request.Builder()

        builder.url(request.url())
        builder.headers(request.headers())
        builder.addHeader("token",LjlUtils.getSpData("token"))
        builder.post(request.body())

        var build = builder.build()
        return chain.proceed(build)

    }


}